//
//  CustomNavController.swift
//  DouYuZB
//
//  Created by wangpeng on 2017/7/4.
//  Copyright © 2017年 不愁网. All rights reserved.
//

import UIKit

class CustomNavController: UINavigationController {
    
    override func viewDidLoad() {
        super.viewDidLoad()
        /*
         guard  let gesture = interactivePopGestureRecognizer  else { return }
         guard let gestureView = gesture.view else { return }
         
         /*
         var count: UInt32 = 0
         let ivarList =  class_copyIvarList(UIGestureRecognizer.self, &count)
         for i in 0..<count {
         let ivar = ivarList?[Int(i)]
         let ivarName = ivar_getName(ivar)!
         print(String(cString: ivarName))
         }
         */
         let targets = gesture.value(forKeyPath: "_targets") as! [NSObject]
         guard let  targetObject = targets.first else { return }
         
         let target = targetObject.value(forKeyPath: "target")
         
         let  action = Selector(("handleNavigationTransition:"))
         
         let gesPan = UIPanGestureRecognizer(target: target, action: action)
         gestureView.addGestureRecognizer(gesPan)
         */
    }
    
    override func pushViewController(_ viewController: UIViewController, animated: Bool) {
        //隐藏底部Tabbar
        viewController.hidesBottomBarWhenPushed = true
        super.pushViewController(viewController, animated: animated)
        
    }
}
